<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<h1>JSON对象创建</h1>
		<script>
			person = {
				name:'Jack',
				age : 20,
				addr : {
					HomeAddr : '太原市迎泽区',
					WorkAddr : '太原市小店区',
					}
				}
			alert(person.name)
			alert(person['age'])
			alert(person.addr.HomeAddr)
			students = [
				{name : 'wj', age : 20},
				{name : 'lyr', age : 21}
			];
			alert(students[1].age)
			s={"sites": [
    { "name":"菜鸟教程" , "url":"www.runoob.com" }, 
    { "name":"google" , "url":"www.google.com" }, 
    { "name":"微博" , "url":"www.weibo.com" }
    		]}
			alert(s.sites[1].name)
		</script>
	</body>
</html>
